<?php

namespace app\api\validate;

use think\Validate;

class Precept extends Validate
{
    protected $rule = [
        "h_id" => "require",
        "rname" => "require",
        "tel"      => "require|mobile",
        "type" => "require",
        "content" => "require",
        "images" => "require",
    ];

    protected $message = [
        'h_id.require' => '请选择健康师',
        'rname.require' => '请填写姓名',
        'tel.require'      => '请填写手机号码',
        'tel.mobile'       => '手机号格式错误',
        'type.require' => '请选择需求类型',
        'content.require' => '请描述您遇到的需求内容',
        'images.require' => '清上传图片',
    ];

}